Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add shadow-exchange #2273

Merged
merged 5 commits into from
Jan 2, 2025
Merged

Conversation

0xShad0w
Copy link
Contributor

No description provided.

@llamabutler
Copy link

The shadow-exchange.ts adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees shadow-exchange.ts

🦙 Running SHADOW-EXCHANGE.TS adapter 🦙
---------------------------------------------------
GRAPH_API_KEY env variable is not set, using the default api key
Start Date:	Mon, 30 Dec 2024 10:05:59 GMT
End Date:	Tue, 31 Dec 2024 10:05:59 GMT
---------------------------------------------------

GraphFetchError: Failed to get total volume on undefined with graph undefined: Cannot read properties of undefined (reading 'document')
GraphFetchError: Failed to get total volume on undefined with graph undefined: Cannot read properties of undefined (reading 'document')
Unable to get total fees on undefined from graph.
Unable to get total fees on undefined from graph.
Error: [avax]Value: NaN dailyVolume is NaN
    at getChainResult (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:68:49)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.all (index 0)
    at async runAdapter (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:27:20)
    at async /home/runner/work/dimension-adapters/dimension-adapters/cli/testAdapter.ts:84:21 {
  chain: 'avax'
}

@llamabutler
Copy link

The shadow-exchange.ts adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees shadow-exchange.ts

🦙 Running SHADOW-EXCHANGE.TS adapter 🦙
---------------------------------------------------
GRAPH_API_KEY env variable is not set, using the default api key
Start Date:	Mon, 30 Dec 2024 10:09:12 GMT
End Date:	Tue, 31 Dec 2024 10:09:12 GMT
---------------------------------------------------

GraphFetchError: Failed to get total volume on undefined with graph undefined: Cannot read properties of undefined (reading 'document')
GraphFetchError: Failed to get total volume on undefined with graph undefined: Cannot read properties of undefined (reading 'document')
Unable to get total fees on undefined from graph.
Unable to get total fees on undefined from graph.
Error: [avax]Value: NaN dailyVolume is NaN
    at getChainResult (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:68:49)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.all (index 0)
    at async runAdapter (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:27:20)
    at async /home/runner/work/dimension-adapters/dimension-adapters/cli/testAdapter.ts:84:21 {
  chain: 'avax'
}

@llamabutler
Copy link

The shadow-exchange.ts adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees shadow-exchange.ts

🦙 Running SHADOW-EXCHANGE.TS adapter 🦙
---------------------------------------------------
GRAPH_API_KEY env variable is not set, using the default api key
Start Date:	Mon, 30 Dec 2024 10:51:47 GMT
End Date:	Tue, 31 Dec 2024 10:51:47 GMT
---------------------------------------------------

error fetching block TypeError: Cannot read properties of null (reading 'getBlock')
    at _getCurrentChainBlock (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/blocks.js:84:59)
    at getCurrentChainBlock (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/blocks.js:76:22)
    at _lookupBlock (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/blocks.js:204:44)
    at /home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/blocks.js:155:26
    at /home/runner/work/dimension-adapters/dimension-adapters/node_modules/p-limit/index.js:23:31
    at run (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/p-limit/index.js:23:43)
    at /home/runner/work/dimension-adapters/dimension-adapters/node_modules/p-limit/index.js:45:20
error fetching block TypeError: Cannot read properties of null (reading 'getBlock')
    at _getCurrentChainBlock (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/blocks.js:84:59)
    at getCurrentChainBlock (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/blocks.js:76:22)
    at _lookupBlock (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/blocks.js:204:44)
    at /home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/blocks.js:155:26
    at /home/runner/work/dimension-adapters/dimension-adapters/node_modules/p-limit/index.js:23:31
    at run (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/p-limit/index.js:23:43)
    at /home/runner/work/dimension-adapters/dimension-adapters/node_modules/p-limit/index.js:45:20
GraphFetchError: Failed to get total volume on undefined with graph undefined: Cannot read properties of undefined (reading 'document')
GraphFetchError: Failed to get total volume on undefined with graph undefined: Cannot read properties of undefined (reading 'document')
Unable to get total fees on undefined from graph.
Unable to get total fees on undefined from graph.
Error: [sonic]Value: NaN dailyVolume is NaN
    at getChainResult (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:68:49)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.all (index 0)
    at async runAdapter (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:27:20)
    at async /home/runner/work/dimension-adapters/dimension-adapters/cli/testAdapter.ts:84:21 {
  chain: 'sonic'
}

@llamabutler
Copy link

The shadow-exchange.ts adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees shadow-exchange.ts

🦙 Running SHADOW-EXCHANGE.TS adapter 🦙
---------------------------------------------------
GRAPH_API_KEY env variable is not set, using the default api key
ReferenceError: SONIC is not defined
    at Object.<anonymous> (/home/runner/work/dimension-adapters/dimension-adapters/fees/shadow-exchange.ts:50:23)
    at Module._compile (node:internal/modules/cjs/loader:1364:14)
    at Module.m._compile (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/ts-node/src/index.ts:1618:23)
    at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
    at Object.require.extensions.<computed> [as .ts] (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/ts-node/src/index.ts:1621:12)
    at Module.load (node:internal/modules/cjs/loader:1203:32)
    at Function.Module._load (node:internal/modules/cjs/loader:1019:12)
    at Module.require (node:internal/modules/cjs/loader:1231:19)
    at require (node:internal/modules/helpers:177:18)
    at /home/runner/work/dimension-adapters/dimension-adapters/cli/testAdapter.ts:56:49

@llamabutler
Copy link

The shadow-exchange.ts adapter exports:

> [email protected] test
> ts-node --transpile-only cli/testAdapter.ts fees shadow-exchange.ts

🦙 Running SHADOW-EXCHANGE.TS adapter 🦙
---------------------------------------------------
GRAPH_API_KEY env variable is not set, using the default api key
Start Date:	Tue, 31 Dec 2024 05:51:41 GMT
End Date:	Wed, 01 Jan 2025 05:51:41 GMT
---------------------------------------------------

error fetching block TypeError: Cannot read properties of null (reading 'getBlock')
    at _getCurrentChainBlock (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/blocks.js:84:59)
    at getCurrentChainBlock (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/blocks.js:76:22)
    at _lookupBlock (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/blocks.js:204:44)
    at /home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/blocks.js:155:26
    at /home/runner/work/dimension-adapters/dimension-adapters/node_modules/p-limit/index.js:23:31
    at run (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/p-limit/index.js:23:43)
    at /home/runner/work/dimension-adapters/dimension-adapters/node_modules/p-limit/index.js:45:20
error fetching block TypeError: Cannot read properties of null (reading 'getBlock')
    at _getCurrentChainBlock (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/blocks.js:84:59)
    at getCurrentChainBlock (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/blocks.js:76:22)
    at _lookupBlock (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/blocks.js:204:44)
    at /home/runner/work/dimension-adapters/dimension-adapters/node_modules/@defillama/sdk/build/util/blocks.js:155:26
    at /home/runner/work/dimension-adapters/dimension-adapters/node_modules/p-limit/index.js:23:31
    at run (/home/runner/work/dimension-adapters/dimension-adapters/node_modules/p-limit/index.js:23:43)
    at /home/runner/work/dimension-adapters/dimension-adapters/node_modules/p-limit/index.js:45:20
GraphFetchError: Failed to get total volume on sonic with graph https://gateway-arbitrum.network.thegraph.com/api/5a1340b49fa9efe0021452daa260564e/subgraphs/id/QmQUpw87hb34A97MJZJcFNDfG9sP3ekSMojNKxVfPH8Ukw: auth error: payment required for subsequent requests for this API key
GraphFetchError: Failed to get total volume on sonic with graph https://gateway-arbitrum.network.thegraph.com/api/5a1340b49fa9efe0021452daa260564e/subgraphs/id/QmQUpw87hb34A97MJZJcFNDfG9sP3ekSMojNKxVfPH8Ukw: auth error: payment required for subsequent requests for this API key
Unable to get total fees on sonic from graph.
Unable to get total fees on sonic from graph.
Error: [sonic]Value: NaN dailyVolume is NaN
    at getChainResult (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:68:49)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.all (index 0)
    at async runAdapter (/home/runner/work/dimension-adapters/dimension-adapters/adapters/utils/runAdapter.ts:27:20)
    at async /home/runner/work/dimension-adapters/dimension-adapters/cli/testAdapter.ts:84:21 {
  chain: 'sonic'
}

@dtmkeng dtmkeng merged commit 4dcdfa8 into DefiLlama:master Jan 2, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants